<?php 
/* SVN FILE: $Id$ */
/* Clg Test cases generated on: 2009-09-09 12:12:23 : 1252498343*/
App::import('Model', 'Clg');

class ClgTestCase extends CakeTestCase {
	var $Clg = null;
	var $fixtures = array('app.clg');

	function startTest() {
		$this->Clg =& ClassRegistry::init('Clg');
	}

	function testClgInstance() {
		$this->assertTrue(is_a($this->Clg, 'Clg'));
	}

	function testClgFind() {
		$this->Clg->recursive = -1;
		$results = $this->Clg->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Clg' => array(
			'id'  => 1,
			'cls_id'  => 1,
			'citys_id'  => 1,
			'name'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'address'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.'
		));
		$this->assertEqual($results, $expected);
	}
}
?>